import request from '@/utils/request'

// 查询课程目录列表
export function listCourse_package(query) {
  return request({
    url: '/yljf/course_package/list',
    method: 'get',
    params: query
  })
}

// 查询课程目录详细
export function getCourse_package(id) {
  return request({
    url: '/yljf/course_package/' + id,
    method: 'get'
  })
}

// 新增课程目录
export function addCourse_package(data) {
  return request({
    url: '/yljf/course_package',
    method: 'post',
    data: data
  })
}

// 修改课程目录
export function updateCourse_package(data) {
  return request({
    url: '/yljf/course_package',
    method: 'put',
    data: data
  })
}

// 删除课程目录
export function delCourse_package(id) {
  return request({
    url: '/yljf/course_package/' + id,
    method: 'delete'
  })
}

export function getPlayInfo(data) {
  return request({
    url: '/yljf/file/upload/getPlayInfo',
    method: 'post',
    data: data
  })
}
